<section class="field">
    <div class="main">
      <div class="slice">
        <a href="./field.html">
        <img src="./static/images/shengnan_27.jpg" alt=""> </a></div>

      <div class="swiper-container field-con ">
        <div class="swiper-pagination clearfix"></div>
        <div class="swiper-wrapper">
          <div class="swiper-slide" data-title="高速公路">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="村村通">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="国道省道">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="加油站停车场">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="小区学校">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="厂区矿区">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="驾校旅游区">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>
          <div class="swiper-slide" data-title="更多场景">
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
            <div class="item">
              <a href="./fieldShow.html">
                <div class="pic">
                  <img src="./static/images/lingyu.jpg" alt="">
                </div>
                <div class="tit"> QM型桥面专用修补料 </div>
              </a>
            </div>
           
          </div>

        </div>

      </div>
      <script>
        var fieldArr=[]

        $('.field-con .swiper-slide').each(function(){
          fieldArr.push($(this).attr("data-title"))
        })
        console.log(fieldArr);
        
        var mySwiper44 = new Swiper('.field-con ', {
          loop: true,
          pagination: {
            el: '.swiper-pagination',
             clickable :true,
            renderBullet: function (index, className) {
              return '<span class="' + className + '" data-id="'+ (index+1) +'">' + fieldArr[index] + '</span>';
            },
          }
        })

      </script>
    </div>
  </section>